package xyz.renyumeng.xkm.model.shop;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import xyz.renyumeng.xkm.model.base.BaseEntity;

/**
 * @author renyumeng
 * @date Created in 16:03 2023/6/30
 */

@Data
@ApiModel(description = "商品信息")
@TableName("product_info")
@EqualsAndHashCode(callSuper = true)
public class ProductInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品名称")
    @TableField("`product_name`")
    private String productName;

    @ApiModelProperty("商品详细信息")
    @TableField("`desc`")
    private String desc;

    @ApiModelProperty("发布人id")
    @TableField("`owner_id`")
    private Long ownerId;

    @ApiModelProperty("类型id")
    @TableField("`type_id`")
    private Long typeId;

    @ApiModelProperty("图片地址")
    @TableField("`image`")
    private String image;

    @ApiModelProperty("是否上架(0上架，1下架)")
    @TableField("`is_listed`")
    private Integer isListed;

    @ApiModelProperty("是否售出(0售出，1未售出)")
    @TableField("`is_soled`")
    private Integer isSoled;


}
